package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.po.BalanceIntegral;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IBalanceIntegralService extends IService<BalanceIntegral> {
    /**
     * 查询余额和积分
     */
    BalanceIntegral getBalanceIntegral() throws BusinessLogicException;

    /**
     * 修改余额和积分
     */
    void updateBalanceIntegral(BalanceIntegral balanceIntegral) throws BusinessLogicException;

    /**
     * 添加余额和积分
     */
    void updateMoneyAndIntegral(String id, double money, int integral) throws BusinessLogicException;

    /**
     * 获取验证码
     */
    void getBalanceVerificationCode(double money) throws BusinessLogicException;

    /**
     * 校验验证码
     */
    void verifyBalanceVerificationCode(String code) throws BusinessLogicException;
}
